<script type="text/javascript">
$(document).ready(function(){
	$(".modal").colorbox({overlayClose: false});
});
</script>
<table class="CSSTableGenerator">
<tbody>
	<tr>
		<td>Id</td>
		<td>VN</td>
		<td>JP</td>
		<td>Owner</td>
		<td>Date Created</td>
		<td></td>
		<td></td>
	</tr>
	<?php
		foreach($this->data as $item) {
	?>
	<tr>
		<td style="width:20px;"><a href='<?php echo $this->base; ?>/comment/edit/id/<?php echo $item['Id']; ?>' class="modal"><?php echo $item['Id']; ?></a></td>
		<td style="width:300px;"><?php echo nl2br($item['VN']); ?></td>
		<td style="width:300px;"><?php if (isset($item['JP']) == false || $item['JP'] == '') {
									echo "&nbsp;";
								} else {
									echo nl2br($item['JP']);
								}
		 ?></td>
		<td style="width:60px;"><?php echo $item['Username']?></td>
		<td style="width:100px;"><?php echo $item['DateCreated']?></td>
		<td style="width:20px;"><a href="<?php echo $this->baseUrl()?>comment/edit/id/<?php echo $item['Id']; ?>" class="modal">Edit</a></td>
		<td style="width:20px;"><a href="<?php echo $this->baseUrl()?>comment/delete/id/<?php echo $item['Id']; ?>" class="modal">Delete</a></td>
	</tr>
	<?php } ?>
	</tbody>
</table>
<div  class="pagination">
<?php echo $this->paginationControl($this->data,
                                    'Sliding',
                                    'pagination.phtml'); ?>
</div>